import { type RouteRecordRaw } from 'vue-router';
import { MAIN_LAYOUT } from '@/components/constants';

export const routeList: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/mixing-process'
  },
  {
    path: '/about',
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: MAIN_LAYOUT,
    children: [
      {
        // 这里需要提供一个空的嵌套路径来嵌套路由组件
        path: '',
        name: 'about',
        component: () => import('@/views/AboutView.vue')
      }
    ]
  }
];

export default routeList;
